/**
 * 
 */
package com.haizhi.service;

import java.io.Serializable;
import java.util.List;

/**
 * @author jiangjintai
 *
 */
public interface BaseService <T,B extends Serializable>{
	T findById(B id);

	T save(T entity);

	void delete(T entity);
	
	List<T> findAll();
	
	void deleteById(B id);
}
